package com.chdwmp.product.service;

import java.util.Set;

public interface RedisService {

    void setString(String key, String value);

    String getString(String key);

    Set<String> getLikeString(String key);

    void deleteString(String key);

    void deleteObject(String key);

    void setObject(String key, Object o);

    Object getObject(String key);

    /**
     * 限时保存键值对
     * @param key
     * @param value
     * @param seconds
     */
    void setObjectTimeLimit(Object key, Object value, long seconds);

    void setStringTimeLimit(String key, String value, long seconds);

    Long getExpire(String key);

    void putHashValue(Object key, Object hashKey, Object hashValue);

    Object getHashValue(Object key, Object hashKey);
}
